package com.ccloud.blog.modules.messageBoard.mapper;


import com.baomidou.mybatisplus.core.mapper.BaseMapper;
import com.baomidou.mybatisplus.extension.plugins.pagination.Page;
import com.ccloud.blog.modules.messageBoard.domain.MessageBoard;
import org.apache.ibatis.annotations.Param;

import java.util.List;
import java.util.Map;

/**
 * <p>
 * 留言板表（留言功能目前默认必须先登录后才允许留言） Mapper 接口
 * </p>
 *
 * @author chentailai
 * @since 2020-04-28
 */
public interface MessageBoardMapper extends BaseMapper<MessageBoard> {

    List<Map<String, Object>> getMsgBoardPagesList(@Param("page") Page<Map<String, Object>> page);


    List<MessageBoard> getRecentMessages();
}
